<?php

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class Link extends Model
{
    protected $dateFormat = 'U';

    protected $fillable = [
        'link_name',
        'link_url',
        'list_order',
    ];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
